import Marquee from "../components/Marquee";
import SceneNavigator from "../core/SceneNavigator";
import UIBase from "../core/UIBase";
import HotUpdateModule from "../module/HotUpdateModule";
import NodeUtil from "../utils/NodeUtil";

const { ccclass, property } = cc._decorator;

@ccclass
export default class HallView extends UIBase {

    @property(Marquee)
    marquee: Marquee = null

    protected onLoad() {
        super.onLoad();
        let lab = NodeUtil.getChildByName(this.node,'version',cc.Label);
        lab && (lab.string = HotUpdateModule.ins().getVersion());
    }

    init(args:any) {
        // this.marquee.push(['大家好，我是小明', '欢迎欢迎欢迎欢迎欢迎！']);
        // this.marquee.play();
    }


    onFightClick(){
        SceneNavigator.go('CardFightScene', {});
    }
    
}
